@extends('admin.layout')
@section('title',$title)
@section('content')
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
                订单管理
                <small>订单详情</small>
            </h1>
            <ol class="breadcrumb">
                <li><a href="#"><i class="fa fa-dashboard"></i>后台首页</a></li>
                <li><a href="#">订单管理</a></li>
                <li class="active">订单详情</li>
            </ol>
        </section>

        <!-- Main content -->
        <section class="content">
            <div class="row">
                <div class="col-xs-12">
                    <div class="box">
                        <div class="box-header">
                            <h3 class="box-title">订单详情</h3>
                        </div><!-- /.box-header -->
                            @if(session('success'))
                                <div class="alert alert-danger">
                                    {{session('success')}}
                                </div>
                            @endif
                             @if(session('fail'))
                                <div class="alert alert-danger">
                                    {{session('fail')}}
                                </div>
                            @endif
                        <div class="box-body no-padding">
                            <table class="table table-striped">

                                <tr>
                                    <td>订单编号</td>
                                    <td>{{$data -> id}}</td>
                                    
                                </tr>
                                
                                <tr>
                                    <td>商品单价</td>
                                    <td>{{$data -> productmoney}}元</td>
                                    
                                </tr>
                                <tr>
                                    <td>商品个数</td>
                                    <td>{{$data -> num}}</td>
                                    
                                </tr>
                                <tr>
                                    <td>订单金额</td>
                                    <td>{{$data -> money}}元</td>
                                    
                                </tr>
                                <tr>
                                    <td>订单状态</td>
                                    <td>
                                        @if($data -> status ==1)
                                            已付款
                                        @else
                                            未付款
                                        @endif
                                    </td>
                                </tr>
                                <tr>
                                    <td>支付方式</td>
                                    <td>
                                        @if($data -> payway ==1)
                                            支付宝
                                        @else
                                            银联
                                        @endif
                                    </td>
                                </tr>
                                 <tr>
                                    <td>订单留言</td>
                                    <td>{{$data -> content}}</td>
                                </tr>
                                <tr>
                                    <td>下单时间</td>
                                    <td>{{$data -> atime}}</td>
                                </tr>
                                <tr>
                                    <td>付款时间</td>
                                    <td>{{$data -> ptime}}</td>
                                </tr>
                                <tr>
                                    <td>发货时间</td>
                                    <td>{{$data -> stime}}</td>
                                </tr>
                                <tr>
                                    <td>物流名称</td>
                                    <td>{{$data -> wlname}}</td>
                                </tr>
                                <tr>
                                    <td>运单编号</td>
                                    <td>{{$data -> wlid}}</td>
                                </tr>
                                <tr>
                                    <td>运费</td>
                                    <td>{{$data -> wlmoney}}</td>
                                </tr>
                                <tr>
                                    <td>用户名</td>
                                    <td>{{$data -> uname}}</td>
                                </tr>
                                <tr>
                                    <td>收货人</td>
                                    <td>{{$data -> utname}}</td>
                                </tr>
                                <tr>
                                    <td>收货人电话</td>
                                    <td>{{$data -> uphone}}</td>
                                </tr>
                                <tr>
                                    <td>收货地址</td>
                                    <td>{{$data -> uaddress}}</td>
                                </tr>
                                <tr>
                                    <td>订单总额</td>
                                    <td>{{$data -> allmoney}}</td>
                                </tr>
                            </table>
                        </div><!-- /.box-body -->
                    </div><!-- /.box -->
                        
                </div><!-- /.col -->
            </div><!-- /.row -->
        </section><!-- /.content -->
    </div><!-- /.content-wrapper -->
@endsection